home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / music / 5mods_1.arj / SPUD-03.MOD < prev    next >
Text File  |  1994-01-17  |  2KB  |  72 lines

  1. Spud #1 @6455
  2. Sat Jan 15 17:05:37 1994
  3. 0R: net34: @2050 (via @1040) [23:42 01/16/94]
  4. 0R: net33: @1040 (via @6457) [00:52 01/17/94]
  5. 0R: net33: @6457 (via @6464) [05:15 01/16/94]
  6. 0R: net33: @6464 (via @6455) [05:15 01/16/94]
  7. 0R: net33: @6455 [17:07 01/15/94]
  8. #─────────────────────────────────────────────────────────────────────
  9.  Mod Name  : SPUD-03.423          Written by  : Spud 1@6455 (WWIVnet)
  10.  Difficulty: 1 of 10 (Easy!)      Date Written: Jan. 15, 1994
  11.  File(s)   : LILO.C               WWIV Version: 4.23
  12.  
  13.  Desc: Changes Language to City,ST in last few callers.
  14.  
  15.  
  16. #─────────────────────────────────────────────────────────────────────
  17.  
  18. DISCLAIMER : You did it, I didn't.
  19.  
  20. #============================ STEP 1 =================================
  21.  
  22. Dont forget to do the 'ole pkzip on your source!!!! (Back it up)
  23.  
  24. #============================ STEP 2 =================================
  25.  
  26. Open LILO.C and add these lines to : void logon (void)
  27.  
  28. void logon(void)
  29. {
  30.     char s[255],s1[181],s2[81],cyst[18],*ss;  //add cyst[18]
  31.     int i,i1,dv,win,os2,f;
  32.     long len,pos;
  33.     mailrec m;
  34.  
  35. //Code here//
  36.  
  37.     cursub=0;
  38.     msgreadlogon=0;
  39.     if (strlen(thisuser.city)<=14) {                             // ADD
  40.     sprintf(cyst,"%s, %s",thisuser.city,thisuser.state);         // ADD
  41.     } else {                                                     // ADD
  42.     sprintf(cyst,"%-14.14s, %2s",thisuser.city,thisuser.state);  // ADD
  43.     }                                                            // ADD
  44.     if ((udir[0].subnum==0) && (udir[1].subnum>0))
  45.  
  46. //More Code//
  47.  
  48.         sprintf(s,"%-6ld %-23.23s %-18.18s %-5.5s %-5.5s %-14.14s %2d\r\n",
  49.             status.callernum1,          //^^^^ Change above line ^^^^
  50.             nam(&thisuser,usernum),
  51.             cur_lang_name,              //Delete this line
  52.             cyst,                       //Add this line
  53.             times(),
  54.             date(),
  55.             curspeed,
  56.             thisuser.ontoday);
  57.  
  58.  
  59. #===========================End of Mod================================
  60.  
  61.  
  62. I've made this code so that if the users city exceeds 14 characters
  63. it is truncated so that the state still shows up.
  64.  
  65. That's it, I hope you enjoy this small mod.  Comments and suggestions can
  66. be mailed to me at WWIVnet 1@6455 or IceNET 1@6461
  67.  
  68. If you enjoy this mod, please let me know, this will give me insentive to
  69. write more mods...
  70.  
  71. 2$pûδ0
  72.